# Copyright 2009 http://www.yuntien.com
# Licensed under the Apache License, Version 2.0

import datetime
from google.appengine.ext import webapp
import ytblog.config

register = webapp.template.create_template_register()

def timedelta(datetime, delta=ytblog.config.TIMEZONE_OFFSET):
  return datetime + datetime.timedelta(hours = delta)

register.filter(timedelta)
